<input type="hidden" name="pcancel" id="pcancel" value="0" />
<input type="hidden" name="type" id="type" value="{$smarty.get.type}" />
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="search">
    <tbody>
        <tr>
            <td width="20%">
                <label for="stt">{$language.label.status}:</label>
                <select name="status" id="status" onchange="this.form.submit();">     
                	{if $AppUI->type > $smarty.const.ROLE_LEADER}                  	                
                    	{html_options options=$language.options.sponsor_status_ad selected=$smarty.get.stt}
                    {else}
                    	{html_options options=$language.options.sponsor_status selected=$smarty.get.stt}
                    {/if}
                </select>
            </td>
             <td width="20%">
                <label for="option">{$language.label.optionsearch}:</label>
                <select name="option" id="option" > 
                    {html_options options=$language.options.sponsor selected=$smarty.get.stt}                    	
                </select>
            </td>   
             <td width="20%">
                <label for="keyword">{$language.label.keyword}:</label>
                <input style="width:90%" type="text" name="keyword" id="keyword" value="" class="half"/>
            </td>                                
            <td width="20%">
                <label for="startdate">{$language.label.postdate}:</label>
                <input type="text" name="startdate" id="startdate" value="{if isset($smarty.session.SPONSOR_SEARCH)}{$smarty.session.SPONSOR_SEARCH.startdate|escape}{/if}" class="half first"/>
                <input type="text" name="enddate" id="enddate" value="{if isset($smarty.session.SPONSOR_SEARCH)}{$smarty.session.SPONSOR_SEARCH.enddate|escape}{/if}" class="half"/>
            </td>    
            <td>                
                <button type="submit" class="search">{$language.btn.search}</button>                
                {if isset($smarty.session.SPONSOR_CANCEL) && $smarty.session.SPONSOR_CANCEL == 1} 
                	<button type="button" onclick="javascript:cancelSearch(this.form);" class="search">{$language.btn.cancel}</button> 
                {/if}
            </td>            
        </tr> 
    </tbody>
</table>
